var o = getApp();

Page({
    data: {
        order_id: ""
    },
    onLoad: function(o) {
        this.setData({
            order_id: o.id
        }), this.getData();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getData: function() {
        var t = this, n = o.getNetAddresss("plugin.cloud-warehouse.frontend.order-detail");
        o._getNetWork({
            url: n,
            data: {
                order_id: t.data.order_id
            },
            success: function(o) {
                var n = o.data;
                1 == n.result ? (console.log(n), t.setData({
                    info: n.data
                })) : wx.showToast({
                    icon: "none",
                    title: n.msg,
                    duration: 1500
                });
            },
            fail: function(o) {
                console.log(o);
            }
        });
    }
});